package com.arcbees.test.collaborative.client.diffsync;

import com.arcbees.test.collaborative.client.util.ClientLogger;
import com.arcbees.test.collaborative.shared.diffsync.DiffHandler;
import com.arcbees.test.collaborative.shared.diffsync.DocumentShadow;
import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;

public class SimpleDifferentialSync extends AbstractDifferentialSync {

  @Inject
  public SimpleDifferentialSync(DiffHandler diffHandler,
      DocumentShadow docShadow, ClientLogger logger,
      @Assisted DifferentialSyncCallback callback) {
    super(diffHandler, docShadow, logger, callback);
  }

  @Override
  protected void editsAdded() {
    synchronize();
  }

}
